#include "School.h"

School::School() {
}

School::~School() {
    for (int i = 0; i < (int)departments.size(); i++) {
        delete departments[i];
    }
    departments.clear();
}

void School::addDepartment(Department* p_Department) {
    departments.push_back(p_Department);
}

void School::addStudent(Student* p_Student) {
    students.push_back(p_Student);
}

std::vector<Department*> School::getDepartments() {
    return departments;
}

std::vector<Student*> School::getStudents() {
    return students;
}
